package com.ruoyi.video.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * video对象 upload_task
 * 
 * @author Larry
 * @date 2024-03-22
 */
public class UploadTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */

    private Long id;

    /** 当前分片 */
    @Excel(name = "当前分片")
    private Integer current;

    /** 文件MD5加密后的唯一标识 */
    @Excel(name = "文件MD5加密后的唯一标识")
    private String fileMd5;

    /** 桶名称 */
    @Excel(name = "桶名称")
    private String bucketName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String fileUrl;

    /** 文件总大小 */
    @Excel(name = "文件总大小")
    private Long totalSize;

    public void setChunkSize(Integer chunkSize) {
        this.chunkSize = chunkSize;
    }

    /** 分片大小 */
    @Excel(name = "分片大小")
    private Integer chunkSize;

    /** 分片数量 */
    @Excel(name = "分片数量")
    private Integer chunkNum;
    private Integer finish;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Integer getFinish() {
        return finish;
    }

    public void setFinish(Integer finish) {
        this.finish = finish;
    }

    public Long getId()
    {
        return id;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public void setFileMd5(String fileMd5)
    {
        this.fileMd5 = fileMd5;
    }

    public String getFileMd5() 
    {
        return fileMd5;
    }
    public void setBucketName(String bucketName) 
    {
        this.bucketName = bucketName;
    }

    public String getBucketName() 
    {
        return bucketName;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setTotalSize(Long totalSize) 
    {
        this.totalSize = totalSize;
    }

    public Long getTotalSize() 
    {
        return totalSize;
    }


    public Integer getChunkSize() {
        return chunkSize;
    }

    public Integer getChunkNum() {
        return chunkNum;
    }

    public void setChunkNum(Integer chunkNum) {
        this.chunkNum = chunkNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("current", getCurrent())
            .append("fileMd5", getFileMd5())
            .append("bucketName", getBucketName())
            .append("fileUrl", getFileUrl())
            .append("totalSize", getTotalSize())
            .toString();
    }
}
